import QtQuick 2.15

Item {
    width: 800
    height: 50
    // Rectangle{
    //     anchors.fill: parent
    // }
    Text {
        id: timeItem
        color: ui.textColor
        x:20
        anchors.verticalCenter: parent.verticalCenter
        font.pixelSize: 32
        font.bold: true
        text: Qt.formatTime(new Date(), "HH:mm")
    }
    Timer{
        id:timerItem
        repeat: true
        interval: 900
        onTriggered: timeItem.text = Qt.formatTime(new Date(), "HH:mm")
    }
    Component.onCompleted:timerItem.start()
}
